/**
 * Created by malingling on 15-12-15.
 */
app.controller ('SelectRestaurantCtrl',function($scope,$location){
    $.ajaxSettings.async = false;
    $.getJSON('../json/restaurant.json',function(data){
        $scope.restaurants = data['restaurants']
    })
    $scope.back_to_menu = function (restaurant){
        $location.path('select_menu');
        localStorage.setItem('restaurant',restaurant)
    };

});